﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using mscook.core.domain;
using NHibernate.Linq;
namespace mscook.core.repositories
{
    public class BonusBuyRepository:Repository<BonusBuy>, mscook.core.repositories.IBonusBuyRepository
    {
        public IList<BonusBuy> GetAllOrderByPrice()
        {
            var query = (from x in this.Session.Query<BonusBuy>() select x)
            .Where(o => o.IsDelete == false).OrderBy(o => o.Price).OrderBy(o => o.Bonus);
            return query.ToList();
        }

     
    }
}
